package com.schmix.dpp;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainMenuActivity extends Activity{
	
	private static final String TAG = "MainMenuActivity";

	public void onCreate(Bundle savedInstanceState){
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main_menu);
		
		Button dppBtn = (Button) findViewById(R.id.dpp_btn);
		dppBtn.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				Intent intent = new Intent(MainMenuActivity.this, DigitalPortionPlateActivity.class);
				startActivity(intent);
			}
		});
		
		Button calcNeedsBtn = (Button) findViewById(R.id.caloric_needs_btn);
		calcNeedsBtn.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(MainMenuActivity.this, CalculateNeedsTabActivity.class);
				startActivity(intent);
			}
		});
		
		Button optionsBtn = (Button) findViewById(R.id.options_btn);
		optionsBtn.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(MainMenuActivity.this, SettingsActivity.class);
				startActivity(intent);
			}
		});
		
		Button helpBtn = (Button) findViewById(R.id.help_btn);
	}
	
}
